package com.umeng.soexample.mvp.model;

import com.umeng.lib_core.http.MResponseManager;
import com.umeng.lib_core.mvp.model.BaseModel;
import com.umeng.soexample.bean.HomeMenuEntity;
import com.umeng.soexample.mvp.contract.MainContract;
import com.umeng.soexample.network.API;

import javax.inject.Inject;

import io.reactivex.Observable;

public class MainModel extends BaseModel implements MainContract.IMainModel {

    @Inject
    public MainModel (){}

    @Override
    public Observable<HomeMenuEntity> homemenu() {
        return MResponseManager.obtainRetrofit(API.class).home_menu_request();
    }

    @Override
    public void destroy() {

    }
}
